<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<form th:action="@{./updateAQ}">
    <table th:each="s : ${SK}">
        <tr>
            <td>区域</td>
            <td>
                <select name="districid">
                    <option th:selected="${districts==0?'true':'false'}" value="0">--请选择--</option>
                    <option th:selected="${districts==1?'true':'false'}" value="1">--东城区--</option>
                    <option th:selected="${districts==2?'true':'false'}" value="2">--西城区--</option>
                    <option th:selected="${districts==3?'true':'false'}" value="3">--朝阳区--</option>
                    <option th:selected="${districts==4?'true':'false'}" value="4">--开福区--</option>
                </select>
            </td>
        </tr>
        <tr>
            <td>监测时间</td>
            <td><input type="date" id="monitortime" th:value="${#dates.format(SK.getMonitortime(),'yyyy-MM-dd')}"
                       name="monitortime"></td>
        </tr>
        <tr>
            <td>PM10数据监测</td>
            <td><input type="text" th:value="${s.pm10}" name="pm10"></td>
        </tr>
        <tr>
            <td>PM2.5数据</td>
            <td><input type="text" th:value="${s.pm25}" name="pm25"></td>
        </tr>
        <tr>
            <td>监测站</td>
            <td><input type="text" th:value="${s.monitoringstation}" name="monitoringstation"></td>
        </tr>
        <tr>
            <td><input type="submit"></td>
            <td><input type="hidden" name="id" th:value="${s.id}"></td>
        </tr>
    </table>
    <span>当前修改时间[[${now}]]</span>
</form>
</body>
</html>